﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SaleOnlineSystem.Admin.Controls
{
    public partial class ListLogo : System.Web.UI.UserControl
    {
        
        public string imagelogo;
        public string date;
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                if (!Page.IsPostBack)
                {
                    //Them du lieu vao cat 1              
                    DataTable dt = DAL.DCollector.DBCollector.Instance.CallStored("callstored", "SELECT * FROM tbl_Logo", true);
                    imagelogo = dt.Rows[0]["Logo_Image"].ToString();
                    date = dt.Rows[0]["Logo_Date"].ToString();
                }
            }
            catch (Exception)
            {
                Response.Redirect("/error.htm");
            }
        }
    }
}